<h1>Welcome to <%=@user.login.capitalize%>'s page</h1>
<% if @user %>
<a href='/<%=@user.login%>/profile'>
 <img src="<%=@user.depiction||'/appwiki/images/baby.jpg'%>"/>
</a>
<%end%>
<br/>
<br/>
<div style="font-size:18; font-family: Verdana">
<% if @visitingself %>
	Commands you can do here:
	<ul>
	<li><a href="/<%=@user.login%>/edit">Edit your profile</a></li>
<% else %>
	Commands you can do at this persons home:
	<ul>
<%end%>
	<li><a href="/user/people">See all people</a></li>
	</ul>
	Places this user is a member of:
    <%
       write "<ul>\n"
       Note.find_roots(@user).each do |x|
         if @user && x.is_a_member?(@user.id)
           write "<li><a href='#{x.relative_url}'>#{x.uid}</a></li>\n"
         end
       end
       write "</ul>\n"
     %>
</div>
